//---------------------------------------------------------------------------
//
// Name:        ComprimirFrame.h
// Author:      Fernandez Vera Ezequiel, Manzanel Juan Manuel
// Created:     21/02/2009 11:18:52 a.m.
// Description: ComprimirFrame class declaration
//
//---------------------------------------------------------------------------

#ifndef __COMPRIMIRFRAME_h__
#define __COMPRIMIRFRAME_h__

#ifdef __BORLANDC__
	#pragma hdrstop
#endif

#ifndef WX_PRECOMP
	#include "wx/wx.h"
	#include "wx/frame.h"
#else
	#include "wx/wxprec.h"
#endif

//Do not add custom headers between 
//Header Include Start and Header Include End.
//wxDev-C++ designer will remove them. Add custom headers after the block.
////Header Include Start
#include "wx/filedlg.h"
#include "wx/tglbtn.h"
#include "wx/button.h"
#include "wx/textctrl.h"
#include "wx/stattext.h"
////Header Include End

////Dialog Style Start
#undef ComprimirFrame_STYLE
#define ComprimirFrame_STYLE wxCAPTION | wxSYSTEM_MENU | wxMINIMIZE_BOX | wxCLOSE_BOX
////Dialog Style End
#include "Compresor.h"

class ComprimirFrame : public wxFrame
{
	private:
		DECLARE_EVENT_TABLE();
		
	public:
		ComprimirFrame(wxWindow *parent, wxWindowID id = 1, const wxString &title = wxT("ComprimirFrame"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = ComprimirFrame_STYLE);
		virtual ~ComprimirFrame();
		wxString getTipoQuadTree();
        void botonComprimirClick(wxCommandEvent& event);
		
	private:
		//Do not add custom control declarations between
		//GUI Control Declaration Start and GUI Control Declaration End.
		//wxDev-C++ will remove them. Add custom code after the block.
		////GUI Control Declaration Start
		wxToggleButton *botonHojasComp;
		wxFileDialog *dialogoAbrir;
		wxFileDialog *dialogoGuardar;
		wxToggleButton *botonHojas;
		wxToggleButton *botonVector;
		wxButton *botonComprimir;
		wxTextCtrl *editorUmbral;
		wxStaticText *WxStaticText2;
		wxStaticText *WxStaticText1;
		////GUI Control Declaration End
		bool datosCompletos();
        int getUmbral();
		wxString imagen;
		wxString comprimido;
		Compresor * compresor;
    private:
		//Note: if you receive any error with these enum IDs, then you need to
		//change your old form code that are based on the #define control IDs.
		//#defines may replace a numeric value for the enum names.
		//Try copy and pasting the below block in your old form header files.
		enum
		{
			////GUI Enum Control ID Start
			ID_BOTONHOJASCOMP = 1009,
			ID_BOTONHOJAS = 1008,
			ID_BOTONVECTOR = 1007,
			ID_BOTONCOMPRIMIR = 1006,
			ID_EDITORUMBRAL = 1005,
			ID_WXSTATICTEXT2 = 1003,
			ID_WXSTATICTEXT1 = 1001,
			////GUI Enum Control ID End
			ID_DUMMY_VALUE_ //don't remove this value unless you have other enum values
		};
		
	private:
		void OnClose(wxCloseEvent& event);
		void CreateGUIControls();
};

#endif
